import { RegisterOpt } from './types';
import { REGISTERSQL } from './sql';
import curd from '../../common/services/curd'
class RegisterService {
    /**
     * 注册
     */
    async register(options: RegisterOpt) {
        // 注册
        const res = await curd.addRes(REGISTERSQL, options.username, options.password, options.role)

        return res
    }
}

export default new RegisterService()